package com.skivingcloud.admin.sys.mapper;

import com.skivingcloud.admin.sys.entity.TenantMenu;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 租户资源菜单范围 Mapper 接口
 * </p>
 *
 * @author skivingcloud
 * @since 2022-03-31
 */
public interface TenantMenuMapper extends BaseMapper<TenantMenu> {

	/**
	 * 根据租户加载资源树权限
	 * 
	 * @param tenantId
	 * @return
	 */
	List<Map<String, Object>> getTenantResTree(String tenantId);

}
